﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Net;
using System.Threading;
using HtmlAgilityPack;
using System.Xml;
using System.Collections.Concurrent;

namespace SimilarTextWebCrawlerWCFService
{
    class SimilarTextWebCrawlerWCFService : ISimilarTextWebCrawlerWCFService
    {
        
        public string[] GetSimilarWords(Uri url, string word, int depth)
        {
            FigureOutWhatYouWant whatIsItExactly = new FigureOutWhatYouWant(url);
            if (depth > 10)
            {
                throw new ArgumentException("Cannot have a depth greater than 10");
            }
            string[] _a = whatIsItExactly.getWhatWasMent(word, depth);
            return _a;
        }
    }
}